//
//  MKUserAccount.h
//  Weibo_OC
//
//  Created by mac on 16/1/13.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MKUserAccount : NSObject <NSCoding>
/*
 "access_token" = "2.00uT683GSgIo_C2436b3ede3QRgezC";
 "expires_in" = 157679999;
 "remind_in" = 157679999;
 uid = 5828409194;
 
 "allow_all_act_msg" = 0;
 "allow_all_comment" = 1;
 "avatar_hd" = "http://ww4.sinaimg.cn/crop.455.71.1137.1137.1024/006mrptUjw8ezwsn1r7x8j31kw0zkarb.jpg";
 "avatar_large" = "http://tp3.sinaimg.cn/5828409194/180/5747554649/1";
 "bi_followers_count" = 0;
 "block_app" = 0;
 "block_word" = 0;
 city = 1;
 class = 1;
 "created_at" = "Tue Jan 12 11:46:48 +0800 2016";
 "credit_score" = 80;
 description = "\U6211\U5c31\U662f\U6211,\U989c\U8272\U4e0d\U4e00\U6837\U7684\U70df\U706b.";
 domain = "";
 "favourites_count" = 0;
 "follow_me" = 0;
 "followers_count" = 1;
 following = 0;
 "friends_count" = 42;
 gender = m;
 "geo_enabled" = 1;
 id = 5828409194;
 idstr = 5828409194;
 lang = "zh-cn";
 location = "\U5317\U4eac \U4e1c\U57ce\U533a";
 mbrank = 0;
 mbtype = 0;
 name = "\U9a6c\U53ef_\U83e0\U841d2016";
 "online_status" = 0;
 "pagefriends_count" = 0;
 "profile_image_url" = "http://tp3.sinaimg.cn/5828409194/50/5747554649/1";
 "profile_url" = "u/5828409194";
 province = 11;
 ptype = 0;
 remark = "";
 "screen_name" = "\U9a6c\U53ef_\U83e0\U841d2016";
 star = 0;
 "statuses_count" = 0;
 urank = 0;
 url = "";
 "user_ability" = 0;
 verified = 0;
 "verified_reason" = "";
 "verified_reason_url" = "";
 "verified_source" = "";
 "verified_source_url" = "";
 "verified_trade" = "";
 "verified_type" = "-1";
 weihao = "";

 */
@property (copy, nonatomic) NSString *access_token;
@property (copy, nonatomic) NSString *uid;
@property (assign, nonatomic) NSTimeInterval expires_in;
@property (strong, nonatomic, readonly) NSDate *expires_date;
@property (copy, nonatomic) NSString *avatar_large;
@property (copy, nonatomic) NSString *name;

+ (instancetype)userAccountWithDict:(NSDictionary *)dict;

+ (MKUserAccount *)loadUserInfo;

- (void)saveUserInfo;

@end
























